﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BlindTestApplication.MyMessageBox
{
    /// <summary>
    /// Interaction logic for MyMessageBox.xaml
    /// </summary>
    public partial class MyMessageBox : Window
    {
        public MyMessageBox()
        {
            InitializeComponent();
        }

        public new string Message
        {
            get { return this.lblMessage.Text; }
            set { this.lblMessage.Text = value; }
        }

        public static bool? Show(string msg)
        {
            var msgBox = new MyMessageBox();
            msgBox.Message = msg;
            return msgBox.ShowDialog();
        }

        private void close_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            Close();
        }
    }

}
